﻿capital = 835
2000.1.1 = {
	set_variable = { currency_strength = 0.75 }
	set_cosmetic_tag = MEX
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	set_country_flag = is_getting_cdf_subsidies
	add_to_array = { global.uncdf_recipients = THIS }
	add_dynamic_modifier = { modifier = un_aid_subsidies_modifier }
	set_variable = { gdp_per_capita = 17.943 }

	complete_special_project = sp:sp_composite_production
	complete_special_project = sp:sp_naval_vessel_project

	set_naval_oob = "MEX_2000_naval_mtg"
	complete_special_project = sp:sp_armoured_vehicle_project
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "MEX_2000_nsb"
		set_technology = {
			mbt_tech_ops = 1
			mbt_tech = 1
			tank_ammo_1 = 1
			defensive_systems = 1
			nsb_gun_technology_1 = 1
			nsb_artillery_ammo_1 = 1
			nsb_special_ammo_0 = 1
			nsb_AA_autocannon_0 = 1
			nsb_SHORAD_missile_0 = 1
			diesel_engine_tech = 1
			diesel_engine_tech_2 = 1
			tank_components_tech = 1
			tank_components_tech_2 = 1
			small_medium_gun_tech = 1
			medium_gun_tech = 1
			small_autocannon_tech = 1
			assault_gun_tech = 1
			nsb_artillery_0 = 1
			nsb_Anti_Air_0 = 1
			armor_tech = 1
		}
		create_equipment_variant = {
			name = "HWK-11"
			type = medium_tank_amphibious_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun
				reload_type_slot = automatic_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_no_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = afv_troop_capacity
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
			}
			obsolete = yes
		}
		create_equipment_variant = {
			name = "DN-III"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun
				reload_type_slot = automatic_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = afv_alum_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				secondary_armament_slot = empty
				special_type_slot_1 = empty
				special_type_slot_2 = afv_gun_ports
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 0
			}
			obsolete = yes
		}
		create_equipment_variant = {
			name = "DN-IV Caballo"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = small_autocannon
				ammunition_load_slot = mixed_autocannon_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = afv_alum_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				reload_type_slot = automatic_loading
				secondary_armament_slot = empty
				special_type_slot_1 = empty
				special_type_slot_2 = afv_gun_ports
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 0
			}
			obsolete = yes
			icon = "gfx/interface/technologies/MEX/LAND/REC_DN_IV.dds"
		}
		create_equipment_variant = {
			name = "DN-V Buffalo"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_assault_gun
				ammunition_load_slot = mixed_main_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = afv_alum_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				reload_type_slot = automatic_loading
				secondary_armament_slot = empty
				special_type_slot_1 = smoke_launchers
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 0
			}
			icon = "gfx/interface/technologies/MEX/LAND/REC_DN_V_Buffalo.dds"
		}
		else = {
			set_oob = "MEX_2000_nonnsb"
			set_technology = {
				Early_APC = 1
				APC_1 = 1
				IFV_1 = 1
				tech_arty_0 = 1
				Anti_Air_0 = 1
				Rec_tank_0 = 1
				Rec_tank_1 = 1
				Rec_tank_2 = 1
			}
		}
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "MEX_2000_bba"
		else = {
			set_air_oob = "MEX_2000_nonbba"
		}
	}

	set_variable = { industrial_conglomerates_opinion = 80 }
	set_variable = { small_medium_business_owners = 75 }
	set_variable = { landowners_opinion = 60 }

	add_opinion_modifier = { target = COL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = COL modifier = spanish_speaking }
	add_opinion_modifier = { target = ARG modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ARG modifier = spanish_speaking }
	add_opinion_modifier = { target = PRU modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PRU modifier = spanish_speaking }
	add_opinion_modifier = { target = VEN modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = VEN modifier = spanish_speaking }
	add_opinion_modifier = { target = CHL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = CHL modifier = spanish_speaking }
	add_opinion_modifier = { target = ECU modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ECU modifier = spanish_speaking }
	add_opinion_modifier = { target = GUA modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = GUA modifier = spanish_speaking }
	add_opinion_modifier = { target = BOL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = BOL modifier = spanish_speaking }
	add_opinion_modifier = { target = DOM modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = DOM modifier = spanish_speaking }
	add_opinion_modifier = { target = HON modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = HON modifier = spanish_speaking }
	add_opinion_modifier = { target = PAR modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PAR modifier = spanish_speaking }
	add_opinion_modifier = { target = ELS modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ELS modifier = spanish_speaking }
	add_opinion_modifier = { target = NIC modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = NIC modifier = spanish_speaking }
	add_opinion_modifier = { target = COS modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = COS modifier = spanish_speaking }
	add_opinion_modifier = { target = CUB modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = CUB modifier = spanish_speaking }
	add_opinion_modifier = { target = PAN modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PAN modifier = spanish_speaking }
	add_opinion_modifier = { target = URG modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = URG modifier = spanish_speaking }

	# deliniates the amount of control each faction has over each state
	every_owned_state = {
		set_variable = { var = MEX_state_control value = 0 }
		if = {
			limit = {
				THIS = {
					is_core_of = SLA
				}
			}
			set_variable = { var = MEX_sinola_state_control  value = 4 }
		}
		if = {
			limit = {
				THIS = {
					is_core_of = TAM
				}
			}
			set_variable = { var = MEX_tamaulpas_state_control  value = 4 }
		}
		if = {
			limit = {
				THIS = {
					is_core_of = TRC
				}
			}
			set_variable = { var = MEX_tierra_state_control  value = 4 }
		}
	}

	# Starting tech
	set_technology = {
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1

		superior_firepower = 1

		infantry_weapons_1 = 1
		infantry_weapons_2 = 1
		infantry_weapons_3 = 1
		infantry_weapons_4 = 1

		night_vision_1 = 1

		cnc_equipment_1 = 1
		cnc_equipment_2 = 1

		#For templates
		combat_eng_equipment = 1
		Anti_tank_0 = 1
		Heavy_Anti_tank_0 = 1
		util_vehicle_1 = 1

		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1

		radar = 1
		internet1 = 1 	#1G
		internet2 = 1
		fuel_silos = 1

		nanofibers_1 = 1
		nanofibers_2 = 1
		printing_1 = 1
		printing_2 = 1
		genetics_1 = 1
		fuel_refining = 1
		early_renewables = 1
		renewables = 1
		electrification_1 = 1
		construction1 = 1
	}

	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = {
			decryption1 = 1
			encryption1 = 1
		}
	}
	set_technology = {
			corvette_hull_1 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1

			tech_submarine_engineering_1 = 1

			tech_naval_systems_engineering = 1
			tech_power_systems_1 = 1

			tech_combat_support_systems = 1
			tech_fire_control_1 = 1
			tech_combat_radar_1 = 1
			tech_combat_radar_2 = 1
			tech_combat_sonar_1 = 1

			tech_early_naval_weapon_systems = 1
			tech_naval_weapon_systems = 1
			tech_light_guns_1 = 1

			tech_point_defense_chain_gun = 1

			tech_turret_missiles_surface_1 = 1
			tech_turret_missiles_aa_1 = 1
			tech_vls_surface_1 = 1
			tech_vls_aa_1 = 1

			tech_torpedoes_1 = 1

			tech_landing_craft_1 = 1
		}
	add_ideas = {
		wto_member
		partially_privatized_healthcare
		balanced_protections
		standard_maintenance
		us_dollar
		standard_regulations

		#Economic Cycle
		stagnation
		#Corruption
		corruption_level_08
		#Faction 1
		industrial_conglomerates
		#Faction 2
		small_medium_business_owners
		#Faction 3
		landowners

		#Bureacracy
		bureau_02
		#Military Spending
		defence_01
		#Internal Security
		police_04
		#Education budget
		edu_03
		#Health budget
		health_02
		#Social spending
		social_03

		#Trade Law
		semi_consumption_economy
		#Conscription Law
		partial_draft_army
		#Women in the military
		volunteer_women
		#Foreign Intervention Law

		#Officer Training
		officer_military_school

		#Other
		nuclear_energy
		christian
		heavily_regulated_immigration
		un_aid_esco_member

		un_aid_cdf_member
		no_currency_backing
	}
	add_to_array = { global.un_aid_esco_contributor = THIS }
	add_to_array = { global.un_aid_cdf_contributor = THIS }

	# Cartel System
	set_variable = { cartel_political_influence = 20 }
	set_variable = { strength_of_cartels = 40 }

	#Influence system
	add_to_array = { MEX.influence_targets = GUA }
	add_to_array = { MEX.influence_targets = BLZ }
	add_to_array = { MEX.influence_targets = ELS }
	add_to_array = { MEX.influence_targets = HON }
	add_to_array = { MEX.influence_targets = NIC }
	add_to_array = { MEX.influence_targets = COS }
	add_to_array = { MEX.influence_targets = PAN }
	add_to_array = { MEX.influence_targets = JAM }
	add_to_array = { MEX.influence_targets = CUB }
	add_to_array = { MEX.influence_targets = BAH }
	add_to_array = { MEX.influence_targets = USA }
	add_to_array = { MEX.influence_targets = CAN }

	init_influence = yes
	set_variable = { domestic_influence_amount = 200 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 100 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 20 }
	sort_influence = yes

	### Economy
	set_variable = { var = debt value = 721 }
	set_variable = { var = treasury value = 52 }
	set_variable = { inflation_rate_var = 0.16586 }
	set_variable = { cb_policy_rate = 3 }
	set_variable = { var = corporate_tax_rate value = 30 }
	set_variable = { var = population_tax_rate value = 28 }
	set_variable = { overall_productivity = 622 }
	set_variable = { var_reactor_material_stockpile = 2500 }

	set_popularities = {
		democratic = 92.0
		communism = 0.0
		fascism = 0.0
		neutrality = 8.0
		nationalist = 0.0
	}
	set_politics = {
		ruling_party = democratic
		last_election = "1994.7.1"
		election_frequency = 72
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^1 = 0.37 } #conservatism
	set_variable = { party_pop_array^2 = 0.39 } #liberalism
	set_variable = { party_pop_array^3 = 0.16 } #socialism
	set_variable = { party_pop_array^17 = 0.03 } #Neutral_green
	set_variable = { party_pop_array^19 = 0.05 } #Neutral_Communism

	### Ruling Party
	set_variable = { ruling_party = 2 }

	startup_politics = yes

	create_country_leader = {
		name = "Ernesto Zedillo"
		picture = "ernesto_zedillo.dds"
		ideology = liberalism
		traits = {
			western_liberalism
		}
	}

	set_variable = { term_limit = 1 }
	set_variable = { current_term = 1 }

	recruit_character = MEX_adolfo_martinez
	recruit_character = MEX_alejandro_hernandez
	recruit_character = MEX_juan_minjares
	recruit_character = MEX_vidal_sanz
	recruit_character = MEX_gilberto_andreu
	recruit_character = MEX_alfrdo_gomez
	recruit_character = MEX_carlos_munguia
	recruit_character = MEX_daniel_ramirez
	recruit_character = MEX_roble_gallardo
	recruit_character = MEX_salvador_zepada
	recruit_character = MEX_roberto_miranda
	recruit_character = MEX_rigoberto_cortes
	recruit_character = MEX_miguel_canchola
	recruit_character = MEX_juan_organitos


	# Relation Starting Configuration (moved from on_startup)
	add_opinion_modifier = { target = HAM modifier = HAM_Not_A_Recognized_country }
	add_opinion_modifier = { target = CUB modifier = sanctions }
	add_relation_modifier = { target = USA modifier = USA_World_Economical_Relations }
	add_relation_modifier = { target = SOV modifier = SOV_World_Economical_Relations }
	add_relation_modifier = { target = CHI modifier = CHI_World_Economical_Relations }
	add_relation_modifier = { target = FRA modifier = FRA_World_Economical_Relations }
	add_relation_modifier = { target = GER modifier = GER_World_Economical_Relations }
	add_relation_modifier = { target = ENG modifier = ENG_World_Economical_Relations }
	add_relation_modifier = { target = SPR modifier = SPR_World_Economical_Relations }
	add_relation_modifier = { target = ITA modifier = ITA_World_Economical_Relations }
	add_relation_modifier = { target = UKR modifier = UKR_world_economical_relations }
	add_relation_modifier = { target = ISR modifier = ISR_World_Economical_Relations }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists_Trade }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists_Trade }
}

2017.1.1 = {  
	# Starting tech
	set_technology = {  
		infantry_weapons_5 = 1
		support_weapons = 1
		support_weapons2 = 1
		tandem_charge_warheads = 1
		squad_automatic_weapon = 1 
		night_vision_2 = 1 
		cnc_equipment_3 = 1  
		body_armor_2 = 1 
		microprocessors = 1
		computing2 = 1 
		computing3 = 1 
		computing4 = 1 
		artificial_intelligence_1 = 1 
		genetics_2 = 1  
		gprs = 1
		wifi = 1
		internet3 = 1	#3G
		edge = 1
		umts = 1
		hsupa = 1
		internet4 = 1	#4G
		lte = 1  
		construction2 = 1 
	}
	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = { 
			decryption2 = 1
			decryption3 = 1 
			decryption4 = 1  
			encryption2 = 1
			encryption3 = 1
			encryption4 = 1 
		}
	}    
	set_technology = { 
		corvette_hull_1 = 1
		corvette_hull_2 = 1
		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1
		destroyer_hull_1 = 1
		destroyer_hull_2 = 1
		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		attack_submarine_hull_3 = 1
		tech_submarine_engineering_1 = 1
		tech_naval_systems_engineering = 1  
	} 

	set_country_flag = TPP_Signatory
	set_country_flag = Major_Importer_US_Arms #Trends-in-international-arms-transfers-2016.pdf 
	set_variable = { industrial_conglomerates_opinion = 80 }
	set_variable = { small_medium_business_owners = 75 }
	set_variable = { landowners_opinion = 60 }

	### Economy
	set_variable = { var = debt value = 1045 }
	set_variable = { var = treasury value = 178 }
	set_variable = { var = int_investments value = 122 }
	set_variable = { var = corporate_tax_rate value = 30 }
	set_variable = { var = population_tax_rate value = 28 }

	set_popularities = {
		democratic = 47.0
		communism = 38.0
		fascism = 0.0
		neutrality = 15.0
		nationalist = 0.0
	}
	set_politics = { 
		ruling_party = democratic
		last_election = "2012.7.1"
		election_frequency = 72
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.22 } #conservatism
	set_variable = { party_pop_array^2 = 0.18 } #liberalism
	set_variable = { party_pop_array^3 = 0.07 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0.38 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0.06 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.05 } #neutral_Social
	set_variable = { party_pop_array^19 = 0.04 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 2 }

	startup_politics = yes

	create_country_leader = {
		name = "Enrique Peña Nieto"
		picture = "Enrique_Pena_Nieto.dds"
		ideology = liberalism
		traits = {
			western_liberalism
		}
	} 
}